<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    {% load static %}

    <P>用户名：{{ user.name }}</P>
    <img src="{% static user.icon %}" width="200" alt="200">
    <p>{{ user.name }}用户相册</p>
    {% for photo in user.photomodel_set.all %}
        <img src="{% static photo.img %}" width=100>
    {% endfor %}
    
</body>
</html>